<?php


namespace app\index\model;


use think\Model;

class BaseModel extends Model
{
    public function getAvatarAttr($value)
    {
        return $value ?: request()->domain().'/template/assets/images/img_default@2x.png';
    }

    public function getImageAttr($value)
    {
        return $value ?: request()->domain().'/template/assets/images/img_default@2x.png';
    }
}